home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Performance Co-Pilot 1.3
/
SGI Performance Co-Pilot 1.3.iso
/
dist
/
dist6.4
/
pcp.idb
/
usr
/
share
/
catman
/
u_man
/
cat3
/
PMAPI
/
pmtraversepmns.z
/
pmtraversepmns
Wrap
Text File
|
1997-04-03
|
3KB
|
67 lines
PPPPMMMMTTTTRRRRAAAAVVVVEEEERRRRSSSSEEEEPPPPMMMMNNNNSSSS((((3333)))) PPPPMMMMTTTTRRRRAAAAVVVVEEEERRRRSSSSEEEEPPPPMMMMNNNNSSSS((((3333))))
NNNNAAAAMMMMEEEE
ppppmmmmTTTTrrrraaaavvvveeeerrrrsssseeeePPPPMMMMNNNNSSSS - traverse the performance metrics name space
CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ppppccccpppp////ppppmmmmaaaappppiiii....hhhh>>>>
iiiinnnntttt ppppmmmmTTTTrrrraaaavvvveeeerrrrsssseeeePPPPMMMMNNNNSSSS((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, vvvvooooiiiidddd ((((****ddddoooommmmeeeettttrrrriiiicccc))))((((cccchhhhaaaarrrr ****))))))))
cccccccc ............ ----llllppppccccpppp
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The routine ppppmmmmTTTTrrrraaaavvvveeeerrrrsssseeeePPPPMMMMNNNNSSSS may be used to perform a depth-first traversal
of the Performance Metrics Name Space (PMNS).
The traversal starts at the node identified by _n_a_m_e - if _n_a_m_e is a null
string, the traversal starts at the root of the PMNS. Usually _n_a_m_e would
be the pathname of a non-leaf node in the PMNS.
For each leaf node (i.e. performance metric) found in the traversal, the
user-supplied routine _d_o_m_e_t_r_i_c is called with the full pathname of that
metric in the PMNS as the single argument. This argument is null-byte
terminated, and is constructed from a buffer that is managed internally
to ppppmmmmTTTTrrrraaaavvvveeeerrrrsssseeeePPPPMMMMNNNNSSSS. Consequently the value is only valid during the call
to _d_o_m_e_t_r_i_c - if the pathname needs to be retained, it should be copied
using ssssttttrrrrdddduuuupppp(3C) before returning from _d_o_m_e_t_r_i_c.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
PPPPMMMMAAAAPPPPIIII(3) and ppppmmmmGGGGeeeettttCCCChhhhiiiillllddddrrrreeeennnn(3).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
PPPPMMMM____EEEERRRRRRRR____NNNNOOOOPPPPMMMMNNNNSSSS
A PMNS must have been loaded with ppppmmmmLLLLooooaaaaddddAAAASSSSCCCCIIIIIIIINNNNaaaammmmeeeeSSSSppppaaaacccceeee(3) or
ppppmmmmLLLLooooaaaaddddNNNNaaaammmmeeeeSSSSppppaaaacccceeee(3) before calling ppppmmmmTTTTrrrraaaavvvveeeerrrrsssseeeePPPPMMMMNNNNSSSS
PPPPMMMM____EEEERRRRRRRR____NNNNAAAAMMMMEEEE
The initial pathname _n_a_m_e is not valid in the current PMNS
PPPPaaaaggggeeee 1111